package com.ws.q1.service.lmpl;

import com.ws.q1.bean.LanMu;
import com.ws.q1.mapper.LanMuMapper;
import com.ws.q1.service.LanMuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LanMulmpl implements LanMuService {
    @Autowired
    LanMuMapper lanMuService;

    @Override
    public int add(String name, String lan_order) {
        return lanMuService.add(name, lan_order);
    }

    @Override
    public List<LanMu> list() {
        return lanMuService.list();
    }

    @Override
    public int deleteById(Integer id) {
        lanMuService.deleteById(id);

        return 0;
    }

    @Override
    public void update(LanMu lanMu) {
        lanMuService.update(lanMu);

    }

    @Override
    public LanMu huixian(Integer id) {
        return lanMuService.huixian(id);
    }

    @Override
    public List<LanMu> list1() {
        return lanMuService.list1();
    }




//    @Override
//    public int deleteById(int id) {
//        return lanMuService.deleteById(id);
//    }
//
//    @Override
//    public int updateById(int id, String name, String order) {
//        return lanMuService.updateById(id, name, order);
//    }
//

}
